package com.xiongda.dao;

import com.xiongda.pojo.Blog;
import com.xiongda.pojo.BlogWithBLOBs;

import java.util.List;
import java.util.Map;

public interface BlogMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BlogWithBLOBs record);

    int insertSelective(BlogWithBLOBs record);

    BlogWithBLOBs selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BlogWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(BlogWithBLOBs record);

    int updateByPrimaryKey(Blog record);

    BlogWithBLOBs getBlog(Long id);

    List<BlogWithBLOBs> getBlogList(Map<String, Object> map);

    Integer getTotal(Map<String, Object> map);
}